package com.smy.jkds.service.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.smy.jkds.po.Card;
import com.smy.jkds.dao.CardDAO;
import com.smy.jkds.service.CardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 卡片表 服务实现类
 * </p>
 *
 * @author 01140
 * @since 2021-10-30
 */
@Service
public class CardServiceImpl extends ServiceImpl<CardDAO, Card> implements CardService {
    @Override
    public int batchInsert(List<Card> cardList) {
        if (CollectionUtil.isEmpty(cardList)){
            return 0;
        }
        return getBaseMapper().batchInsert(cardList);
    }
}
